# -*- coding: utf-8 -*-
# @Time    : 2022/7/20 10:24
# @Author  : Yanfeng
# @Email   : sxyanfeng2014@163.com
# @File    : __init__.py.py
# @Software: PyCharm


import os


class ConfigHandler:
    _SLASH = os.sep
    # 项目顶层目录
    base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    #

    # 日志路径
    log_dir = os.path.join(base_dir, "logs" + _SLASH)
    # 报告路径
    report_dir = os.path.join(base_dir, "report" + _SLASH)

    # yaml配置文件路径
    yaml_dir = os.path.join(base_dir, "config" + _SLASH + "config.yaml")

    # allure html
    allure_html = os.path.join(base_dir, "report" + _SLASH + "html" + _SLASH + "index.html")

    # guijigenz luj
    guiji_dir = os.path.join(base_dir, "logs" + _SLASH + "test_guiji_check")
    # 亚马逊自动刊登测试环境的配置文件
    test_yaml_dir = os.path.join(base_dir, "config" + _SLASH + "test_amazon_auto_publish_config.yaml")
    # 亚马逊自动刊登生产环境的配置文件
    pro_yaml_dir = os.path.join(base_dir, "config" + _SLASH + "pro_amazon_auto_publish_config.yaml")

    #分级策略目录
    strategy_dir = os.path.join(base_dir,"testcases"+_SLASH+"ProductGrading_Strategy"+_SLASH+"ProductLibrary"+_SLASH+"strategycase"+_SLASH)


if __name__ == '__main__':
    print(ConfigHandler.strategy_dir)